#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define N 5
int main()
{
	int data[N] = { 0 };
	int i = 0, n = 0;
	int j, k=0;
	do
	{
		n++;
		scanf("%d", &data[i]);
		i++;
	} while (data[i - 1] > 0 && data[i - 1] < 100);
	n--;
	for (i = 0; i < n-1; i++)
	{
		k = i;
		for (j = 1; j < n; j++)
		{
			if (data[k] >data[j])
			{
				k = j;
			}
		}
		if (k != i)
		{
			int m;
			m = data[i];
			data[i] = data[k];
			data[k] = m;
		}
	}
	for (i = 0; i < n; i++)
	{
		printf("%d\t", data[i]);
	}
	return 0;
}